package com.yanftch.stopcoding.request;

import com.yanftch.stopcoding.bean.HotBean;
import com.yanftch.stopcoding.cb.RequestCallBack;
import com.yanftch.stopcoding.common.network.CallBack;
import com.yanftch.stopcoding.common.network.HttpUtils;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

/**
 * bing随机图API
 */
public class BingImageRequest implements Request {
    private static final String RANDOM_URL = "https://bing.img.run/rand_1366x768.php";

    public interface BingCallBack {
        void onSuccess(ArrayList<HotBean> list);

        void onError(Exception e);
    }

    @Override
    public void request(RequestCallBack callBack) {

    }

    private void getBingImageList(@NotNull BingCallBack zhihuHotCallBack) {
        HttpUtils.get(RANDOM_URL, new CallBack() {
            @Override
            public void onSuccess(String response) {
            }

            @Override
            public void onError(Exception e) {
            }
        });
    }
}
